package vn.hocweb.dao.dao_interface;

import java.io.Serializable;
import java.util.List;

public interface IGenericDAO <T, ID extends Serializable>{
	
	abstract T findByID(ID id);
	
	abstract List<T> findAll(int firstItem, int batchSize);
	
	abstract int size();
	
	abstract boolean save(T entity);
	
	abstract boolean delete(T entity);
	
	abstract boolean remove(T entity);
	
	abstract boolean restore(T entity);
	
}
